#include<stdio.h>
int Add(int a, int b)
{
	int i = 0;
	int count = 0;
	while (i<32)
	{
		i++;
		if (((a >> i) & 1) != ((b >> i) & 1))
		{
			count++;
		}

	}
	return count;
}
int main()
{
	int a = 0;
	int b = 0;
	scanf_s("%d %d", &a, &b);
	int c = Add(a, b);
	printf("%d", c);
	return 0;
}